It seems to be trying to switch between fullscreen and windowed on every frame. This also causes it to barely register inputs. The issue persists when I re-open the game, so I had to reinstall it when I discovered the issue.
OS is Windows 11, resolution is 1920x1080.