There is no setting, it’s a known issue: https github com thunderbird/thunderbird-android/issues/4602
(sorry, no direct link [yet?] - since I’m running into the 2 links for new users limit …)
Until this is fixed you can try the workaround I described there.
Similar reports:
- Message still stuck forever in outbox (2025-06-30)
- Messages stuck in outbox (2023-12-27)