OnTriggerEnter2D's arguments null in Headless mode

When I build my game for headless mode, the argument passed into OnTriggerEnter2D is null. However when running it normally, the game works as expected. Video demonstrating the bug