Not settings. Something wrong with the TB itself.
Call Apple Support https://www.apple.com/contact/ to get everything set and take it to an Apple Store or Authorized for a proper check.
Always have an external backup and remove iCloud and personal data from your Mac prior to a service.
Also check eligibility to this program Keyboard Service Program for MacBook, MacBook Air, and MacBook Pro - Apple Support
By your Mac model you're in and Apple should help you on that matter. For you to know, this program ends up replacing the entire lower case, I mean, the keyboard, the trackpad and the battery.
Have in mind Apple can deny the service in certain conditions. If they do so, they'll give you the reason why.