It seems for some reason that once I switched to files in a different directory, the problem stopped. This could be because disabling BitDefender had a delayed effect, or it could be something within the directory. Either way, it appears my problem is solved, at least for now.
Thank you for your help and time.