Question #1: do you even have a cooling fan on your bike? Perhaps it fell off when you were riding and you didn’t notice?
I would just flush it out with electrical contact cleaner and hope for the best.
If that doesn’t work, Martin and Dris have you covered.
https://www.twinmotorcycles.nl/websh...cid=0&s=Fan&a=