Increasing max touches on a touchscreen in Unity's new input system.

How do I change the number of max touches a touchscreen can support? It currently supports 10 but I’d like to change it to 32.

What I’ve been able to find: By default, a touchscreen will allocate 10 touch controls. This can be changed by modifying the “Touchscreen” layout itself or by derived layouts. In practice, this means that this array will usually have a fixed length of 10 entries but it may deviate from that.
-Class Touchscreen | Input System | 1.0.2

Weirder still, touches do not always generate corresponding onFingerUp events.

EnhancedTouch.Touch.activeFingers.Count will not count down properly eventually hitting 10 and no longer creating onFingerDown events.

Android’s touch debug output correctly shows the touches.

Were you able to increase the number of touches?

Did you try modifying the following const that you can find in TouchscreenState located in TouchScreen.cs file?

public const int MaxTouches = 10;

Is there another way to increase the maximum number of touches for the input system package?

Modifying Touchscreen.cs feels like an unstable way to make this change as the Package Manager seems prone to overwriting the change.