The pension is likely to become a preserved pension ie contributions are stopped but the pension cannot be drawn until retirement date or if agreed due to ill health -All should be in the terms of employment but it sounds as though this is in the public sector so Government drivinn /Civil service - which will mean she should not lose any contributions
My ex had a few job over the years spending 4-5 years then moving on and had same amount of pensions so consolidated them all into one. Taking early retirement may not release the pension as only certain occupations are permitted early release such as Ballet Dancers, professional sportsmen and members of the HM Forces.