A photo would help.
Most 3x 6 set-ups on older MTB's have a 48-38-28T riveted front chainset. Some had a 42-34-24T and if yours is this size the larger chainset should be straight swap if it is the same make. Shimano ones fit a 122mm bottom bracket spindle to give a 50mm chainline (centre of seat tube to middle chainring). They are freely available. If the derailleur is a friction type (rather than indexed) you might be able to re-use it. In either case you won't be using the small "granny" ring any more with electric assist.
I have an old Giant MTB with a 3x7 set-up and had the same problem as you. I have (2 days ago) fitted a DNP Epoch 11-28T 7 speed rear screw-on freewheel to replace the existing 14-28T.
I've only managed a short test run so far, but the smaller 11t sprocket has solved the "spin out" problem I had above about 18mph.
One should fit on your existing rear wheel hub, but you would need to measure the distance between the rear frame drop-outs, whch should be 135mm or more.
You will also need a 7 speed shifter and possibly a new derailleur,. It's a good idea to replace the chain and cable as well.
DNP 7-Speed 7S Screw-on MTB Bike Freewheel Nickel Plate 11-28T Bicycle | eBay