I have a device i accidentally flashed with a bad program and now its in a hard fault is there anyway to fix this remotely
Unlikely. In an SOS fault condition I believe the unit isn’t cloud connected so anything OTA wouldn’t go through.
Not sure if this feature still exists and when your SOS panic happens, but there was a time when a device that keeps crashing “immediately” after bootup was put into Listening or Safe Mode.
You’d have to try with a local device running the same device OS as your remote device.
However, if the crash only happens after the device had succesfully connected then this won’t help either.