I recently started an E-Bike build. I thought finding the bike frame was going to be easy, but in the end, it turned out to be the hardest thing to find.
Perhaps I'm a little picky, as this is my second E-Bike build, and I don't want to repeat the mistakes I made on my first build. But I ended up looking at many bike frames, and I was shocked at how thin the metal was on many of the frames I saw.
BTW, most of the drop outs on the front forks of mountain bikes... (With the shocks) Are aluminum. Do not mount a motor in the front wheel of a bike with Aluminum crowns. Even with Torque arms its dangerous.
Cast steel, or alloy will flex when stressed, but the cast Aluminum crowns won't flex, they will shatter like glass. Mount the motor in the back if at all possible. (If we are talking about hub motors)

^^ The frame I ended up with after the search.