Turning fan to max disconnects ant+

If you turn off the fan, does the ANT+ signal come back?

I suspect electrical noise when the fan is at max speed. Probably because the motor being driven too hard.

Try moving the ANT+ dongle as far away from the fan as possible. I have mine on a USB extender cable right between my trainer and the bottom bracket.