Here is a description of the B40 error from the Brammo Enertia repair manual:
"This is a necessary safety feature, however, since this is a latching fault (does not clear until power cycle), care was taken to make it filter glitches and only happen when absolute necessary."
Try the following:
1) disconnect the main battery contact in the front of the motorcycle, leave it disconnected for a while and then reconnect it, try to turn on the motorcycle to see if the error has disappeared
2) try to disconnect the main BMC connector on the top of the motorcycle for a while, then plug it in and try to check if the error has disappeared
3) try to disconnect the two main VCU connectors on the top of the motorcycle for a while, then plug it in and try to check if the error has disappeared
If that doesn't help, contact Polaris to tell you how to fix B40 error. It would be ideal to get a repair manual for Victory / Brammo Empulse.
What firmware version do you have? Is it the latest? Some Brammo Enertia / Empulse error messages have been fixed by uploading new firmware.