Common issue in pkdm corolla from 2008 when they changed compressor clutch to sensor type.
Only solution is to change compressor.
Someone on pakwheels suggested another solution, take out all the gas, fill in some 100ml compressor oil, and fill in the new gas. Toyota in saudia did the same for his 10th generation. My car is also doing the same, my 10th generation corolla did same as well. Toyota stealerships or local mechanics calls it weak compressor .