Donec Facilisis Lacinia

You seem to be a talented developer and I wish I could be of more help to you. Indeed, testing the custom firmware is a risk that could brick your NAS beyond repair, and I am not aware of a method to virtualize the hardware or force-install the original firmware in case of an emergency.

Have you checked the My Cloud Developer site for guidance?