FScreenShotRequest sometimes takes a picture from the editor camera despite pawn being possessed

In my code I run the screenshotrequest function every tick on the pawn I am possessing, most of the time the screenshots are from the pov of the pawn camera but every few images or so there will be a single screenshot from the editor camera perspective.

Does anyone know how to fix this? Same issue in 5.7 and 5.8

do not call it every tick since the request queues for the next frame and the editor view can win if it has focus
call the screenshot request once with restrict to game viewport set to true so it only reads the game view
make sure the pie window is focused and wait a frame between shots