Wow, just went through this.
2021 Ram 2500, compressor would come on for 6 to 10 secs, switch off
and no cold air.
Took to my dealership, they swapped lines, compressor, check blend and f doors.
Ended up being the evaporator sensor, and doesn't require complete removal of the dash to replace...