are you using a qmk firmware? qmk calculates the debouncing window in milliseconds by default and 5 ms is the default value. (you can specify the debouncing window in cycles which is less deterministic and not recommended unless you know what you are doing..)
but assuming you specified the window in milliseconds, you actually decreased the debouncing time.. try a value of at least 8. unless you are into competitive gaming, a little delay won't hurt you. you can still lower the value if you notice keys not registering (if the debounce window is longer than your button press).