Even if the sysrq key is disabled, most systems automatically invoke the oom killer. If your work is super important, just let your system sit for a day or two the problem may resolve itself.
If you don’t get any logs about why it locked up I recommend enabling kernel message logging to disk.
C+
I highly doubt anyone would guess ANSI C is what I’m talking about if I referred to it as C+