UK considerations: must be at least signed off by an approved electrician ("Part P" regulations), and for any situations involving subsidy needs to be MCS approved as well. https://mcscertified.com/
Find an electrician who will inspect and sign off on your work. It's not illegal as licensed master electricians have mechanics do all the grunt work who are unlicensed. The electrician vouches for his employees work which legitimizes it. No different than you doing the work and having the electrician inspect, call out issues to fix, and inspect again until no issues are found and sign off.
Surely it only needs to be signed off if you intend to sell the property with them or sell excess back to the grid. If youre just using the batteries how is anyone going to know?
If the DIY work wasn't the cause for the fire it shouldn't matter, but I half-expect someone to inform me that US insurance companies can (legally) deny coverage for reasons unrelated to the accident.
If is something does happen, and Li Batteries catching fire is not something unheard of, you will be in a world of suffering. Probably having no home, and having to pay damages to the neighbors. All to save what? 2k$... 5k$?