That is rotten luck OP, however you walked away from it, which is the main thing. Hopefully the things that made it unique/yours can be salvaged and applied to another Z4 (if you chose to go that route).
Wishing you a speedy recovery, and in the interim, rest up. As mentioned above, muscle...