Only 5AH seems too low for that bike. When I restored one a few years back I used a std flooded battery, yet I believe it was at least 10-12 AH rated.
As already noted these bikes have very poor electrical systems with zero excess capacity, so the battery is doing a lot of the work in around town and low speed/rpm situations.
Buy a battery that is the correct AH rating to match the original one. The AGM is a good quality style of battery and better than a std flooded one, yet not enough capacity and you will be walking.