You need to measure ac pressures while it is failing. Problem could be refrigerant overcharge, poor airflow maybe fan clutch, bad pressure switch, several other things. Expansion valve possible, but down the list, and diagnosed by pressure performance. I would take it back to the mechanic for...