Well then here's one strategy the league could use to maintain a constant membership. With this the league could always have the tier 6 play-off winner play the 18th place club from the HL even before the SPFL play-offs are concluded, and then go from there in determining the final membership for next season, with tier 6 clubs always having a chance at promotion and HL clubs always having to lose a play-off before being relegated.
Scenario 1: No club gained or lost from/to SPFL
Winner of tier 6 play-off vs HL18 gets spot in HL, as expected.
Scenario 2: Club lost to SPFL
Tier 6 play-off champion vs HL18 cancelled, and both clubs get spots in the HL next year. Or if the tie has to be played for timing reasons, then the result is just ignored.
Scenario 3: Club gained from SPFL
Winner of tier 6 play-off plays HL18, and the winner of that plays HL17. The winner of the second tie gets the last spot in next season's HL.