Maybe I already found part of the answer:
The environment I created using the Environments 64 was once created as a 64 bits environment, but now seems to think it is a 32 bits environment...
So I guess error 37 wants to tell my I am trying to start a 64 bit image with a 32 bit VM (or maybe vice versa, but seemingly not the case here).
This doesn't happen if I just create an environment and save the image after connecting it to the Library. But it does happen once I loaded my project code (which uses an external DLL, currently in its 32 bit variant) and save that one.
So it seems I am really asking a question about Environments: why does it turn a 64 bits environment into a 32 bit environment? And is there any chance to change this?
Joachim