Normally it means that your GPU is overloaded, so OBS couldn't take care of its housekeeping tasks in time to produce the frame to send to the encoder.
You can try running OBS as Administrator (there's a workaround that lets OBS try to take GPU time first if running as Admin), or turning on vsync in your game to reduce the GPU load.