Constraining UV freeze-in of light relics with current and next-generation CMB observations