This is somewhat of a longshot, but maybe worth a try if things continue to fail. The problem could also be due to corrupt memory. If you can, try replacing the RAM sticks, at least temporarily. Or you can even run a diagnostic on them, like
memtest86. So... yeah, maybe. I just remember a couple years ago, I've seen on a few computers, including this desktop that I'm on right now, have "weird" Windows DLL-related errors that bugged the hell out of me for weeks. Eventually was just upgrading RAM, that involved replacing sticks, and BAM, errors gone. This solutoins worked on some other people's PCs too; maybe it will on yours.
Most amazing jew boots