@Christian Schmittel Thank you for reaching out to us, As far I am aware FIDO2 login with lid closed should work without any issues, further researching on this found a similar issue (with Dell laptop) in our knowledge base in the past where usb power management within the bios affected the state of the USB when the lid was closed, there was an advice from Yubico in that case where adjusting the BIOS setting ‘Enable lid switch’ to off and the FIDO2 device started functioning correctly with the lid closed.
Would suggest if you have any such setting in the bios do check or else contacting FIDO2 vendor should further help you in this issue.
Let me know if you have any further questions, feel free to post back.
Please remember to "Accept Answer" if answer helped, so that others in the community facing similar issues can easily find the solution.