Quickly I decided to transfer a negligible amount of coins from my self-custodial wallet to an exchange wallet to sell since it was an emergency matter of life.
Did you learn any lesson for yourself from this?
You invested in bitcoin, that is great decision but you did not have any money for emergency.
First of all, you have to make an on chain transaction and accept expensive transaction fee when mempools are congested, it's not necessarily to pay that expensive fee if you have better plan and better capital management.
Secondly you have to sell your bitcoin because of your emergency, and have to sell it at whatever price, you have no choice at that moment. Even have to sell it at lower price than your entry, it's bad in terms of investment view.
Learn from this, and in future you must avoid to use all money for investment in bitcoin. Make sure you have some money, not in bitcoin, to use for emergency.