Chosen Solution

iphone 7 main screen button presses several times when pressed how to fix the problem

If the Home Button is damaged, there is not much anyone can do to fix it. Only Apple can replace it and pair it with a functional button. Even if your phone is out of warranty, you will have to go to Apple for proper diagnostics.