Seconded. It's not intentional obviously and we all make mistakes, me hugely, but it's unfair, cruel even, to expect a baby to know that milk suddenly can't be had at night when they need it at night, wake up naturally for it to suckle and build supply as needed (see growth spurts, they are not regression, they are periods where baby's innate need to suckle to build supply for the spurt kicks in and amplifies) I get that people go back to work and it's a great shame for mum and baby in lots of ways but end of the day it's what some of need or choose to do.
I just think it's good to try and correct the misunderstandings for those who want to act on them.
A baby cannot learn to feel safe alone at night or ever, or learn to supress an innate need to suckle. Why do we need dummies when we don't use breasts? IT's because that need cannot go away, it's innate.
Now I weaned my baby at night at age two for similar reasons. So I do get it, and I will say that it was not what was best for my baby, (ideally) it was what was best for me and what I did?
Extremely simple; dad does it. dad has no boobs, can't ask dad for milk. He got her to settle alone and the cries were painful and I felt bad and what I did was not for my baby, it was for me. If you try to night wean you will have a terrible time because baby will scratch at your boobs and make you feel guilty.
Ask him for help. He needs to get the baby to sleep alone and realise you aren't going to be there. Took us three weeks.