2024 TurboTax flags line 6a as having the error when the sum of lines 6a and 7a exceeds $23,000 because this sum is not permitted to exceed $23,000.
The $7,000 on line 7a might have resulted from you mistakenly reporting a $7,000 contribution to a designated Roth account in your self-employed 401(k) instead of you entering a $7,000 Roth IRA contribution under Deductions & Credits (if that's the sort of Roth contribution you made).