Depending on the Microsoft security updates you have applied, you may need to perform system changes in order to use custom folders. For information on how to fix this issue, see the following Microsoft article:
If using Outlook 2019 and using the above article to implement custom folders, you will need to create all folders and security keys manually.