That's an interesting comment. Whilst I'd not consider WD40 as an insulator, neither had I considered that it'd be conductive either, and certainly not at the sort of voltages found around ebike batteries.
Mr Google gives different answers but the majority indicate that WD40 is OK to spray on...