How to reproduce:
1. Create a new Project
2. Create a Cube GameObject (Right-click in the Hierarchy -> 3D Object -> Cube)
3. Scroll up and down in the Scene view
Expected result: Scrolling works as expected
Actual result: Scrolling up or down sometimes scrolls in the wrong direction and sometimes an error is thrown
Reproducible with: 2023.3.0b5, 2023.3.0b7
Not reproducible with: 2023.3.0b4
Reproduced on: macOS Sonoma 14.2.1 (M1)
Note: Could be a trackpad only issue