I decided to get rid of bike rim and tire. One of the main issues is that even the strongest bike rim is not strong enough and that bike tires are not build for this kind of torque. I had to replace tires every 300 km or so which was getting expensive. I did some research and found a way to get all the parts and assemble a proper rear hub wheel.
I first looked for a rim. I was deciding between 19" and 18" and went with the later. I did some calculations and found that fully infalted 18" motorcycle tyre is only 6cm smaller in diameter than 26" bike tire. A bit smaller wheel will also give a bit more torque (10% or so). I went with SM pro MX rim. They have "old stock" rims on ebay that you can get for around 100€.
Another problem was to find a tire to fit in my bike frame. I didn't want a MX tire because it sucks on tarmac. In the end I found Mitas H03 18-2.75 which fits in the frame perfectly with 1 cm of clearance on each side and is perfect for tarmac and gravel roads where I ride the most.
I then measured my hub and rim and put all data in few hub motor spoke length calculators online to get the length of spokes I needed. Rim had 8.5 mm holes for nipples and motor only 3.8 mm holes for spokes. I did a compromise and went with 3.4 mm spokes (9G) which have 6.5 mm nipples. They fit perfectly but I had to drill motor spoke holes from 3.8mm to 4.2mm.
I started assembling the wheel in one cross pattern. It was easier than I expected but took about an hour. I then mounted the wheel on my bike to true it. This took another hour to get it right. You need a few youtube tutorials and a lot of patience.
And here it is sturdier as ever. The only real downside is that the rear wheel is now even heavier for about 2 kg.
Shopping list (EU):
Spokes: https://www.e-spokes.eu/p13,stainless-spokes-sm-3-4mm-40pcs.html
Rim: https://www.ebay.co.uk/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=sm+pro+rim+18%22&_sacat=0
Tire: Mitas H03 2.75-18 just for price reference: https://www.bartog.si/moto-gume-275-18-48p-h-03-tt-mitas-p-171821.aspx
Rim strip thing to protect tube from nipples and sharp hole edges
18x2.75 tube