I've got several actions that switch my grid parameters in Photoshop. I noticed with the latest Photoshop version, that running actions that do not contain an entry for subdivisions lead to Photoshop freezing. In the example in the screenshot, the actions GridSize 20 and GridSize 32 work fine, but running GridSize 64 leads to a freeze every time. I tried narrowing it down, and setting the grid color has no effect, but once you leave out the setting for subdivisions in the action, the crash occurs.

Using Photoshop 23.3.1 and Windows 10.