I reinstalled GTA and tried a clean GTA folder with RPH and LSPDFR. This worked, so I gradually added my plugins one by one with no problems. EUP also loaded properly with no issues. However, when I added ScriptHookV, the problem reappeared. I don't know if ScriptHook is loading something wrong or if it's because of my trainer (TrainerV). But I don't think so. I can remove TrainerV. When ScriptHook is added, the problem comes back. I've now removed ScriptHook because I don't need it to play, and the error hasn't occurred since then.