Buttons not working at times after replacing the shell of a switch lite

So recently I have did a shell replacing to my Nintendo switch lite and at the moment the R bumper doesn’t function right and the buttons won’t work at times when I try to play a game then they will start working again being able to press every button but it does go back to how it was again not being about to register my button pressing