This is a known issue or say feature limitation which has already been reported and in the discussion. The feature will be available soon as the dependencies were on Microsoft. Together, we were able to get this feature approved and will be available in near future release/update.
Will keep you posted as soon as we'll get to hear anything from engineering.
Mid-July now and still no fix. Just got the same error on my end.
File name is short but if it's in a OneDrive location that's a few folders deep it can't handle it. Frustrating to say the least. My only fix was to SaveAs the file into my laptop Documents folder so the path was shortened and then save as PDF in the preferred OneDrive folder.