I'm a big biker, been riding Thailand roads for over 20 years, I reckon there was enough room for the bike to keep left, letting the pick up to get back in the lane.
It's Thailand, you got to expect the unexpected, if you haven't got the skillset, don't ride a bike in Thailand