Button input bug on Xbox

It happened to me on survival mode with jago. I got into a match and my y button and b button didn’t do anything. I paused the game and tested them out in the controller screen and they worked fine. It took like ten minutes for the buttons to register. I even quit out reloaded survival with saberwulf and same thing y and b did nothing at all. Idk what caused this bug but the only way it went away was just over time it started working again.