Isn't that kind of normal for mountain bikes? Long, low, slack. Hybrids too for that matter.
ebikes are mostly for people who don't ride regularly, may not have the best handling skills, and are best served with a stable bike. That may or may not describe the people around here, but a safe ride is pretty important for a low exertion commuter-hybrid.
for example, the Trek Fuel (Trail bike) has a trail of 11-12mm. That is kinda what you get with the trend with head tube angles less than 70 degrees.
Curious how you got a bike with 40mm trail? 57mm is ideal for an aggressive road bike. That is pretty much where the Madone ends up. Heck, even my track bike (74.5 head tube) ends up at 60mm trail.