Load AssetBundle from file outside of project

To open AssetBundle during game running in editor, I’m using following method:

var filename = Application.persistentDataPath + "/static/" + Name;
AssetBundle.LoadFromFile(filename);

But during procedure get following error:

Unable to read header from archive file: C:/Users/Developer/AppData/.../location
        UnityEngine.AssetBundle:LoadFromFile (string)

LoadFromFileAsync returns same error.
How can I fix this? Suggested methods, such as using WWW is marked obsolete. What’s an actual way to do this correctly in 2023?