I just ran another test. At first it froze like before. I also tried Spear of Destiny, which did the same thing.
I booted into windows, edited the Autoexec.bat and Config.sys, removing the CD-ROM drive from them. I have a backup folder with the CD-ROM drive in them, so I can go back to that.
When it wasn't loaded, MS-DOS had more memory. I tried to load Wolfenstein 3D directly in DOS, and this time it didn't freeze but ran in full.
I have the following set for the sound card:
SET BLASTER=A220 I5 D1 H5 P300 E620 T6
My reason for using P300 for the midi is because the Roland SCC-1 is using port 330 for midi. Nothing is conflicting with the SCC-1 so I have nothing to report regarding it.