Have no fear, your battery can be replace in a few simple steps
Starting off you need the actual replacement battery, there are many on the market [link|https://www.walmart.com/ip/Replacement-Replacement-Battery-Compatible-For-Samsung-Galaxy-A22-5G-A226-2021/1174311214?wmlspartner=wlpa&selectedSellerId=101246936|here|new_window=true] is one from walmart but there are others that are cheaper but maybe less reliable
For the actual replacement there are many videos online about how to replace one of these batteries [link|https://www.youtube.com/watch?v=09QvdruiXF4|here] is just one video that I have seen again feel free to shop around
If possible try to take photos and make a guide on this website so that others with bad batteries may follow in your fixing shoes
Happy Fixing!