As you have already mention, keep CG as low as possible.
And riding technique will keep you right-side up as well, which is a learned skill specific to trike your model/build.
My first trike was a Sun....it was OK, but the model I had was prone to tipping over and I sold it shortly after I bought it.
I settled on a tadpole TerraTrike as a donor for my e-power build.
I engineered it with a focus on value, performance, and stealth.
Value: All-in cost is less than $1500. 100% solar powered (charges in garage using solar panel/controller....panel is not on trike).
Stealth: Most people can not even tell it's e-powered! Looks like a standard unpowered trike. Motor is super-quiet.
Performance: 28MPH top speed using 12S "sport" pack. Using 10S 18AH pack range is over 50 miles. Weighs only 49.4 lbs.
Here is a video which shows trike being ridden 20+mph in curves on one of my favorite paved paths. No tipping over. Riding technique involving leaning in curves and a dialed-in seat with firm lateral support provide very stable ride even in curves at speed.
https://www.youtube.com/watch?v=mD_mHqUxeXw
Fast forward to 3:30 minutes to see best performance in curves. I'm actually leaning heavily into the turns, and alternating my anchor leg that is pushes my body towards the inside of executed turn.
Most recent picture of trike: