That's unlikely, obstacle avoidance is the most likely cause.My friend with the Air2s had a similar issue a few weeks ago, except his started going up with no joystick input, likely caused by false barometer readings?
But the cause should be easily identified with a look at the recorded flight data.
Barometric sensor malfunction hasn't been a problem with DJI drones before the M3.