In AltHold, Collision Avoidance Works but in PosHold it doesn't

Can you give Loiter Mode a try?