AC on 2017 forester suddenly not cold

My ac on my 2017 forester suddenly stopped blowing cold air today. I noticed there was also a high pitched noise coming when the AC button was switched on. The sound is coming from this piece that spins where the serpentine belt is. Video starts with AC on and you can hear the sound stop when I turn the AC off.