Sharing a lane with a car is a recipe for disaster.
If there isn’t space to overtake, take the middle of the lane or get off the road. It’s 30,0000km since I was last hit by a car, it’s working for me.
People who can’t judge the width of their own vehicle are common, and they commonly buy huge vehicle.
Also, buy a bike radar like a Garmin Varia or similar. They vastly improve your awareness in traffic.