Hello, are you signed in with any account already in iPhone Settings under Mail or Accounts?
On iPhone, go to Settings, tap Mail, then Accounts, remove the email account from there if it exists, then go to Settings, General, Transfer or Reset iPhone, tap Reset, then choose Reset Network Settings, after the phone restarts open Outlook and sign in again, this refreshes account credentials and network configuration which can fix the sign in error.