You might need to update to a more current GMS2.3 (or, well, GMS2022) version - the optional argument in debug_get_callstack was introduced in version 2.3.2.426, which released a year ago (16 Apr 2021).
Thanks, updated and all working fine now, cheers!