long_part = 'a'*261
invalid_path = pathlib.Path.home() / long_part / 'another_part'
# windows limit suppressed but still there is 259 limit of the every middle part of path
invalid_path = '\\\\?\\' + str(pathlib.Path.home() / long_part / 'file.exe')
pathvalidate.validate_filepath(str(invalid_path), max_len=1024) # no error
pathlib.Path(invalid_path).mkdir(parents=True) # OSError: [WinError 123]