What are the requirements for stays in Portugal over 90 days after GV application submission?

Given the long processing times associated with the GV visa
issuance, I am trying to determine how to plan a stay of 4 months duration without violating the 90 in 180 ?day rule.
Is it best to apply for a temporary stay visa? Application made June 21,23 awaiting preapproval, 90 day visit from
July 12 till Oct 9 in 23 , and wanting to return for visit in.
24 for 4 or 5 months. Any advise would be warmly welcome.