Jono878,
I've used both D.T. Swiss 350, Industry Nine Torch, Hydra and 1/1 hubs on my eBikes. At issue is the heavy torque leverage which eBike motors place upon the freehub. Some hub "freehub" designs can handle eBike motor torque better than others.
My following response will be limited to Industry Nine and D.T. Swiss as those are the only hubs I've used.
I started keeping track of my mountain bike rides on Strava beginning in May of 2016. Since May 2016, I've done 1,317 rides, ridden 19,000 miles (30,577 km) with a total of 2,469,334.00 feet of elevation gain. During this period of riding, I've gone through a few hubs, spokes and wheelsets. I found some rims, spokes, nipples and hubs were better than others, some were absolute garbage.
Note: A rear hub used on a traditional pedal bike can go thousands of miles before needing a rear hub bearing replacement. I find this is not so for eBikes. The torque from the motor places a tremendous amount of stress on the right, drive side hub bearing and freehub bearings. This is especially so if you ride terrain featuring technical or punchy climbs which places a lot of stress on the freehub. I found that on eBikes, the right side hub bearing and two freehub bearings will need to be replaced more frequently, i.e. after approximately 1,800 miles of hard use.
It's been my experience that D.T. Swiss hubs and the star ratchet design on the D.T. Swiss freehub/driver is pretty much bullet proof. The 350 hub can take a lot of abuse. I have one set of wheels with D.T. Swiss 350 hubs which have over 9,000 miles on them. Lastly, I like that you can find good deals on 350 hubs which won't break the wallet.
View attachment 140769
Industry Nine uses an alloy freehub housing with pawl pockets machined into the alloy freehub carrier. Both the Hydra and 1/1 freehubs hold six engagement pawls. The freehub pawls rotate in pawl pockets and engage the hub drive ring when you pedal.
Industry Nine Hydra Freehub Industry Nine 1/1 Freehub
View attachment 140776 View attachment 140771
It's been my experience that after about 2,500 miles of hard riding, the pawl pockets in the alloy freehub carrier will start to deform due to the stress which the motor places upon the freehub and pawls. Gradually, the deformation of the pawl pocket will allow the pawls to shift and not engage the drive ring properly, i.e. your bike won't go. The deformation will eventually strip the pawls and or the drive ring and the freehub will need to be replaced.
Deformed pawl pockets
View attachment 140775
I have not tried Hope, Chris King, Onyx, Raceface, etc., hubs and therefore cannot comment upon their reliability. I found the D.T. Swiss 350 hub to be reliable.
In the past, I have purchased off the shelf wheelsets. I have not had good luck with off the shelf wheelsets. They never seemed to go the distance. After a short period of riding, spokes would break, nipples would break, wheels would go out of true, etc. The old adage 'You get what you pay for" holds true when it comes to wheelsets. This is especially so if you buy a base model bike which they all tend to come with the cheapest wheelset the bike manufacturer can source at a bargain cost.
If you have the budget, a custom wheelset is the way to go. I prefer this method because I can specify what type of rim will be used, i.e. carbon or alloy and the spoke count for each rim, i.e. 28 on the front and 32 on the rear. I can also specify the type and gauge of spoke for each wheel, i.e. Sapim D-Light on the front wheel and heavier gauge Sapim Race on the rear wheel.
I typically build the rear wheel on my eBikes with a 32 hole rim and heavier gauge spokes. The rear wheel needs to withstand the affects of spoke "Windup" caused by the motor torqueing the rear wheel and propelling the bike forward. This is especially so on technical terrain where much load and stress is placed on the rear wheel. I believe the likely cause of your rear wheel spokes loosening is due to spoke windup. I typically build my front wheels with 28 spokes and a lighter gauge spoke. The rear wheel however, must be more robust. This is especially so if the rider weighs closer to 200 lbs.
I prefer "J" bend spokes over straight pull spokes. There's less a chance of the spoke twisting and loosening over time due to rear wheel windup. A good quality thread locker will help prevent straight pull spokes from loosening. I prefer brass nipples over alloy nipples. The ammonia in tire sealant, i.e. Stans, will cause alloy nipples to corrode and eventually fracture. Brass nipples while a bit heavier, do not corrode.
There are multiple companies which can build a custom wheelset. I have also purchased wheel parts myself and then had my local bike shop build the wheelset for me. If you have a local bike shop build the wheelset, make sure they have a knowledgeable wheel builder on site. Here is an example of an online wheel builder I have used in the past with good results.
Our MTB wheels are hand built by wheel building masters to give you an exceptional ride. Combine your favorite hubs, rims, spokes and nipples from top brands including Industry Nine, Nobl, Stan's NoTubes and more.
customwheelbuilder.com
Regarding rims. In the past I have used both alloy and carbon. Alloy wheels tend to have a more complaint feel and tend to provide a softer ride. The downside to alloy is their ability to bend or flatten when they hit a square edged rock. The areas where I ride feature a large amount of rocks. After a few months of riding and rocks pinging off of the rims, they begin to look like they were hit with a shotgun blast.
I prefer carbon rims over alloy rims. I have used both Nobl (TR37) and We are One (Union) carbon rims. I really like the rims which both of these companies produce. They ride nice, the price is reasonable and they have an excellent warranty. In 2019, I had a very bad accident which destroyed my ankle. Whereas before I liked a rim that allowed me to ping off of every trail kicker in sight, I now prefer a carbon wheel that is more complaint and forgiving.
I'm presently running on my Specialized Turbo Levo a set of Zipp 3Zero Moto rims, 28H front, 32H rear, D.T. Swiss 350 hubs with SRAM XD driver, Sapim D-light spokes on the front and Sapim Race on the rear. I have 2,200 miles on the wheelset and other than a drive side rear hub bearing replacement, I have had no issues nor any need to have the wheels trued.
I hope this helps.
Rod