On Differential Privacy and Adaptive Data Analysis with Bounded Space