This is a common problem with the DOS version of KQ5. Usually the Sierra DOS games have fewer problems than the Windows games, but the sound is easier to get right on the Windows version of KQ5. You can try using a different audio driver. If you can get the DOS version working, you can avoid the “Out of Heap…” error. Try running the game in DOSBox.