There is no strict maximum limit. However, long-term absence due to stress is often reviewed by your employer after four weeks. At this point, they may discuss your recovery progress and ask for updated medical advice. If you need extended time, your GP can continue to issue fit notes for as long as necessary.
Some individuals may take a few weeks off to recover from temporary stress... https://sparkyourhealth.co.uk