It can last forever.
Reactive attachment process is a neurological disruption in social and self regulation created by poor infant nurturing.
Individual and family therapy can help. Medications can help. However, it is not an easy thing to repair and often takes years to improve. Having healthy relationships during the rest of child and adult development will help a lot but is often not enough.