An Update: I just tried to record a MIDI track again with the MME drivers, and the bug popped up! It stopped recording MIDI at a random point in the song. So now this error has shown up using every possible driver on my system: WAS, ASIO and MME. I'm not sure what to try next.