You have various options here.
1) If you know somebody in the USA with an Apple Account and who trusts you, try to make some arrangement with them to take you on as a Family Sharing member (How Family Sharing works - Apple Support and How to set up Family Sharing on your iPhone, iPad, or Mac - Apple Support). This will result in their US payment method covering the cost of any purchase you make should you not have sufficient balance to cover it all and it will leave nothing in your account. You can then change country and repay your friend.
2) Again if you know somebody in the USA, have them buy a USA gift card for you to redeem to your account. Try to make this as close as possible to just exceed what you owe or can make up the difference with purchases because they are for given amounts and any extra you will have to ask Apple to keep --> Ask Apple Support to remove and keep the balance. Live support is not available in all countries.
- Click on the special empty-balance request, chat link at the bottom of this support article ➔ Check your Apple Account balance - Apple Support
- General Apple support and service contact ➔ Contact Apple Support - Apple Support If live support options are available they will show near the bottom left. Telephone numbers may only work when calling from the same country. If numbers show as colored links, click on them for more options.
- With an iPhone, iPad, or Vision, you may be able to chat using the Apple Support App if it is available in your country ➔ https://apps.apple.com/app/apple-support/id1130498044
3) Abandon the old account and see if you can set up a new account in your new country. That is mentioned at the end of this support article --> Change your Apple Account country or region - Apple Support