Your Roth contributions are limited by your Modified Adjusted Gross Income (MAGI). Please see Amount of Roth IRA Contributions You Can Make for 2024
TurboTax is using correctly the Worksheet 2-1. Modified Adjusted Gross Income for Roth IRA Purposes to calculate you MAGI for Roth IRA purposes.
Please see What happens if I made an excess Roth IRA contribution to see your options to fix the excess Roth IRA contribution.