Since nobody gave you an explaination of what this library is, i wiil give it a try:
68040 and 68060 CPUs have some micro-instructions missing in relation to the older (68000-68030) CPUs. They are mainly floating point instructions, but there are a couple of CPU ones as well.
This is where the 68040.library comes in. It emulates these missing instuctions and allows you to run code which was written for older CPUs. If your CPU encounters one of these instructions in a program that you try to run and the 68040.library is not initialized, it will cause a guru or a system lockup/crash, iirc.
If you tried every available version of this library and you continue to experience crashes, try to update the Setpatch command and in case you have install CyberPatcher, try to remove it.