Your ebike has a larger axle than most bikes so the attachment for the trailer will need to be drilled larger to accommodate. Assuming this ebike is hub drive. If the bike is mid drive then you will probably need a thru axle adapter for your trailer. It’s all pretty much dependent on the rear axle of the bike. Get a name brand trailer like Burley or Copilot. Don’t go blasting around with your kid?? Ha, otherwise ride safely. Trailers can be tricky. Get your bike professionally adjusted and check brakes, wheel fasteners and tire pressure regularly.
I am wondering if I can use a rack mount? I saw a product on Burley that you mentioned with a hitch just like that... but it's for a cargo trailer, not a child trailer. And as you said, kind of want to be safe with the kid.
I've used both the two wheeled chariot style that connects to the axle on the left side, as well as a single track style trailer that uses a curved arm from the seat post.
Personally I prefer the latter for the better turning radius, narrower profile, and it also provides the experience for your child of tilting when turning. That said, I have connected the chariot to the single track carrier and gone on picnics and such.
I've also built my own cargo trailers before, so if you share some photos of the tail section of your bike and the style of trailer, I might be able to offer some specific suggestions.