How far can you go with these modifications before the vehicle is no longer street legal? I suspect that even minimal changes might cause an issue there?
The community I linked above is full of people doing this kind of stuff. Some if it illegal, some of it legal.
Jailbreaking an EV I haven't thought about yet, but if the original manufacturer is bust, and you can show some degree of care to the licensing body I am sure it's negotiable.
Obviously it would be better to not be in this position in the first place, but problems are fixable.