Step 1: Sign into Office 365 admin portal via https://portal.office.com
Step 2: Click on Admin from the left pane and navigate to All admin center > OneDrive.
Step 3; Switch to the Device Access tab.
Step 4: Check the Allow access from apps that don’t use modern authentication checkbox.
Step 5: Click Save.