This takes me back. I've had this a million times back in the day, but I can't remember how to fix it. I have a few suggestions though.
If you're running in Pure Dos Mode, ie. Dos 6.22 - check that you have all the options correct in the setup.exe for Doom 2. Make sure you have the correct soundcard selected, with the correct IRQ, DMA and port.
Doom 2 runs with a very small ammount of conventional memory, so available memory is not a problem.
The only other thing I can suggest is to re-install it. That error may come about by a corrupt WAD file or a file might be missing. In which case, if the game is downloaded, try and download a clean version. Try not going for a zip, get the CD-ROM version or even better the original 1.44mb floppy images and write them to disks.
I5-2500K @ 4.0Ghz + R9 290 + 8GB DDR3 1333 :: I3-540 @ 4.2 GHZ + 6870 4GB DDR3 2000 :: E6300 @ 2.7 GHZ + 1950XTX 2GB DDR2 800 :: A64 3700 + 1950PRO AGP 2GB DDR400 :: K63+ @ 550MHZ + V2 SLI 256 PC133:: P200 + MYSTIQUE / 3Dfx 128 PC66