Text this: Memory attacks in network nonlocality and self-testing