Retirement tax questions

You are conflating earned income with QBI. Being QBI eligible does not make the income earned income. For example, many mutual funds with real estate holdings distribute earnings that qualify for QBI. But those distributions are not earned income.