Electrical bad contact sounds like a mechanical fault.
Despite the wind noise there is a contact issue somewhere, it will be wiring or a controller issue.
Riding with the issue will most likely lead to damage so best not too and fault find the issue.
Also separate and refit the motor wire connector along the rear stay to ensure all is well.
Error 24 I believe is hall error code for hubs, for bad contact gently crimp all connections to ensure a good contact. If halls are in a white block tug each wire to ensure it isn't broken or backing out of the block.
Use a multi meter to test for hall failure, they are repairable by replacement.
http://www.ebikes.ca/documents/HallSensorTestingFinal.pdf
Phase wire bullets can get very hot and the insulation melts or becomes brittle so check they aren't shorting.
For broken/intermittent wire fault then a tedious wire continuation checks have to be carried out.