"There is a problem with a family member's previous purchase"
I recently had this issue for my younger brother on our family sharing account. Shortly after removing him from my family account, I signed him out of the App Store account, it fixed the billing issue. No need to buy iTunes gift cards!