I'm sorry to hear that
But give it some time to dry out, the sensors might of picked up a little too much moisture and is throwing the ecu off . I know of some who have had this happen in heavy rain, and as it dries its fine. Keep it out deep puddles and it'll be fine. I've done driving in heavy rain also and have been pretty fortunate to make sure to avoid deep puddles. I'd suggest to let it sit? till the once in a century Rain Passes.