Before invoking Power automate flow from Power apps, check if the attachment is null and pass a dummy value or use Coalesce function and pass dummy value.
SendemailtoOwner.Run(
User().Email,
User().FullName,
{ file:{ name: Coalesce(First(Datacardvalue11.Attachments).Name,'dummyFileName.txt'), contentBytes: Coalesce(First(Datacardvalue11.Attachments).Value,'dummyValue')}}
)
And manage this scenario in Power automate where File Name is 'dummyFileName.txt'.