Welcome to the QuickBooks Online community. I appreciate you taking the time to explain your situation. I'll do what I can to help.
When it comes to matching payroll transactions in the bank feed, the program allows you to match one transaction to one other transaction. So in your case, you won't be able to match your two transfer transactions from the bank to the payroll transaction in the books. Because of this, I recommend excluding the two bank transactions. Don't worry, while matching in the bank feed is a useful tool, it's not 100% necessary and excluding those two transactions won't negatively affect your balances as the payroll transaction still exists in QuickBooks Online.
Don't be afraid to reach out again if you have more questions! Have a great week.