I haven't exactly found a way to fully fix it, but pulling from GitHub into a completely new project temporarily fixes it, which is annoying but faster than just reopening it and hoping it works.