Hi,
Are you sure it is 6 seconds? As default app timer is 30seconds - The OTP codes have a 30 second timer counting down. This timer is so you never have to use the same time-based one-time password (TOTP) twice and you don’t have to remember the number.
For other apps try using Authy and for O365 / Azure / Microsoft Apps I will suggest you use Microsoft Auth App.
Hope this helps.
JS
==
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.