One XDA poster mentioned one workaround to this is to not use 120fps (setting exists on stock OS). I'm trying to find a solution for LineageOS 19.1 which has no fps setting at the time of writing this.
If you go into your phone's settings > display, you can scroll down to a setting called Peak Refresh Rate. It seems the lower I set it, the less often I have the problem. I'm running at 48hz now, and it still happens but not devastatingly often at this point.