Platform Behavior under Market Shocks: A Simulation Framework and Reinforcement-Learning Based Study