If you mean that it repeats like a hall of mirrors, this is called the Droste effect. Since you're recording the screen you have OBS on, it's just like pointing a video camera at a TV showing what the camera is seeing. Working as intended.
You fix it by putting OBS on a second monitor, or minimizing OBS so it isn't visible on the monitor you're recording.
Better, use a Game or Window Capture to capture ONLY the program you want to record. Display Capture is the least-performant capture method and should be avoided at all costs, when possible.