Extremely high gas fees for failed transaction

I recently tried to make a relatively small transaction on metamask. The transaction itself failed, but I still had to pay extortionate gas fees of $1350 dollars. I understand the principle of gas fees, but for a failed transaction this is extortionate. I can’t afford that. Help!

This happened to my husband last night.