@Michael *****
I'd also recommend having a detailed chat with someone in the Centrelink international section specifically, not the regular aged pension section. I claimed the pension while in Australia (in June 2022) and travelled for 4 months after that, with no interruption to my pension, except a reduction/loss of the "extras". I returned to Oz in Decmber 2022. No dramas. Just headed off again a couple of weeks ago, and plan to be gone for 6 monthsish again, maybe longer.
I think this "2 year" thing is poorly understood, and much hinges on how long you've been an Aussie resident, where were you when you applied for the pension, and what exactly constitutes "living outside Australia", and what happens upon return to Oz after x years living outside Oz. As Mark suggests, getting non-BS info from multiple sources is always a good idea, and getting it from Centrelink international is as close as possible to the horse's mouth.