Unlike gen 4 motors, Bosch gen 2 motors do not have software that puts the motor into walk mode if derestriction is detected. Instead, gen 2 motors in one of the firmware updates started to record the derestriction, which showed up in the diagnostic report if the bike is put on a Bosch maintenance system. It is my understanding that can be used to void the warranty but the motor is not rendered useless. Given that your bike is likely more that two years old and therefor past warranty, this should not be of concern.
When I bought my 2018 Delite Mountain with the gen 2 CX motor, used in early 2019, I immediately put a Bikespeed RX dongle on the motor, underneath the motor housing. I figured it was worth the risk. And of course now, there is no risk as the warranty has expired anyway. What I got was a CX motor with no top assist limit, i.e. CX torque and power, EMTB option and a bike that I could pedal at higher speed. In order to access that speed in a meaningful way, I had to replace the 15 tooth front chainring with an 18 tooth one. The put made higher speeds attainable using a sustainable cadence. In order to recapture lost climbing ability due to the larger chainring I changed out the cassette from the stock, 11-42 to an 11-46. At one point, going down a long hill with a 3-4% downgrade, I spun up the cranks as fast as I could to see what kind of speed I could attain. Result: at a cadence of 115, I was going 42 miles per hour.
Finally, I did have concerns about possibly damaging the motor. That bike now has over 5,000 miles on it, I have gone through at least four chains and two cassettes and replaced the chain ring twice as well. The motor has not missed a beat and still provides all the power it always has without any hiccups, odd noises or problems.