There is a chance you damaged the home button cable to plugs into the logic board. It can be damaged while opening or closing the screen. If the cable pulls at all when you open the phone it can tear slightly and cause issues. Also, when you close the phone, it can get pinched between the phone frame and screen if you aren’t careful. Are you having any issues with the force touch on the phone?
It could be a bad Taptic Engine as well. Since the iPhone 7 and newer don’t have a physically clicking home button, the phone uses the Taptic Engine to simulate the home button click.
I would first try a different Taptic Engine and see if that fixes the issue. If no change, I would try replacing the screen to be sure that cable isn’t damaged.
crwdns2934105:0crwdne2934105:0
crwdns2934113:0crwdne2934113:0
crwdns2915270:0crwdne2915270:0
crwdns2889612:0crwdne2889612:0
1