In "InputFieldEngine.cs" and "TextInputHandler.cs", please change all references of:
#if ENABLE_INPUT_SYSTEM
to:
#if ENABLE_INPUT_SYSTEM && !ENABLE_LEGACY_INPUT_MANAGER
When "Both" is used as the input system, this needs to use the legacy input manager or it will not compile.