Just to give an alternate point of view, while this is something that definitely CAN happen, it isn’t something that HAS to happen.
We sleep trained my eldest two DCs at 7 or 8 months, as they were teeny tiny and needed all the calories they could get. But DC3 we sleep trained using the Ferber method at 4 months. We chose to keep 1 feed at night, which I give him if he wakes up any time after 1:30am, but if he wakes up any time before that (or after a feed), my DH goes in to check he isn’t poopy or stuck in between crib rails, pats his bum for a few seconds, says goodnight, and leaves. DS can “protest cry” for a few minutes but that is every unusual. It happens maybe once every week or two.
TBH, we had DS’s 6-month well baby visit this past week and the paediatrician thought I was being a bit precious still offering him one feed. Apparently there’s no need for it. She herself has two kids under 4, breastfed both, but sleep trained and night weaned by 6 months, as have most of my mum friends.
Parenting is exhausting enough during the day. You don’t HAVE to set yourself up for exhausting nights too! And night weaning does not mean the end of breastfeeding. I went back to work with DS2 was 6 months old but carried on breastfeeding and pumping until he was 20 months old.