On the importance of learning non-local dynamics for stable data-driven climate modeling: A 1D gravity wave-QBO testbed