Hello Mateusz Łoskot
Welcome to Microsoft Q&A Platform, thanks for posting your query here.
Adding to previous response from Dillion, I checked with internal team and can confirm that this limitation is by design to ensure the compatibility in Windows.
Ref: https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry
Hope this helps.