Motocross helmets are generally thicker, hotter, bulkier, less forgiving in a slow-speed crash and aren't really fit for purpose when it comes to Mountain Biking.
You have to remember that a Motocross helmet is designed for crashes that occur between 60-100kmh (or more), whereas MTB helmets are designed for slower impacts from 1-60kmh, more-or-less.
Things like MIPS and other rotaional-force-dissipation technologies are only effective in the right circumstances.
A heavy Moto helmet could actually make things worse in a slower-speed accident on an eBike.
Personally, if I was riding Moto and eBiking, I'd have helmets for both and they wouldn't cross over.
I would get a light, sub 1kg, MTB full face if I were you. They can be tiring enough on a long day out, a hotter heavier motorbike helmet would probably suck. I had a moped helmet when I get MTB and straight away knew I wanted something lighter when I thought about using it for MTB!