@d-healey Solved. I was compiling using VS 2019.
Looking at my print the "Compiler Settings" only shows VS 15 and 17 available.
Installed 2017 and now I can export my instrument.
I'm sorry for that. I knew from the beginning that it probably was something very dumb that was causing the error... Anyway, thank you for your help!