This is where I would start: some metal housing is bent and your hub motor internals are rubbing against it, your disc brake rotor is rubbing against your caliper or brake pad, or the wheel hub / wheel bearings /spokes need truing/servicing.
I don't have a hub motor so I'm a lot less helpful. Since you said it only happens when you're on it, I would start with checking the brake rotor alignment and then make sure the wheel / wheel bearings and spokes are all tight and dished. I'm thinking your weight may be throwing your wheel off just a little because the wheel components are loose.