There is no rule of thumb for chainstay length. Some folks think they can feel a change in handling with a shorter/longer chainstay. Some folks conclude that the longer the front center, the longer the rear center. My observations are more practical:
A longer wheelbase takes more distance to make the same turn as a short wheelbase
A shorter rear center (chainstay) allows greater weight shift to the rear wheel
So a short wheelbase is typical more agile, easier to manual, easier to "slarve", better for making tight turns.
The critics of short wheelbases cite increased difficulty with keeping the front end down on climbs and instability at speed.
What is "short"? For an all mountain bike, anything under 435mm, perhaps 440mm if you really want to stretch the definition.
There are only two "short" chainstay ebikes: Pivot Shuttle (437mm), Fezzari Wire Peak (435mm).
Good luck finding either of these bikes used.
Edit: So I concur with Vik on riding non ebikes with chainstays longer than 430mm, BUT I have experienced difficulties keeping the front end down on steep climbs when riding an ebike because the initial surge of power can be difficult to manage until the biker is able to get forward enough to control the surge.
^ This is most often a problem when starting from a stop on a steep slope. To correct this issue I have changes our Shuttle to low gearing, as you would on a non ebike, so currently my wife is running an 11-46 x 30; stock was 11-42 x 34. I'd consider going down to a 26t or 28t if I could find a direct mount chainring to fit.