The key to (dis)mount should be separate from the interact key. It's impossible to (dis)mount near NPCs or gathering nodes bc the character tries to gather or talk with NPCs instead of riding.
If you hold backwards + interact, you will dismount even if there is an interactable object in range.