It's important that you have or create only one TXT record for SPF. If you already have an SPF record, you should append the new Microsoft 365 values to it, rather than create a new one. After you've added or updated your SPF record for Microsoft email, you should check to make sure that the syntax is correct with one of these tools:
SPF Record Testing Tools
SPF Surveyor
Dig web interface