Why does car stall and smell hot when AC is turned on? on 2010 Mercury Mountaineer

Turn on AC or defrost, strange noise, dies, smells hot. Restarts when AC turned off.

Asked by for the 2010 Mercury Mountaineer
Have ac compressor checked may be locking up! Burning rubber smell with ac on? If so may be belt from locking compressor.