The Arduino IDE has problems compiling with files on OneDrive but I've never seen that affect hardware packages and thinking about it more I don't think it would.
Please provide a directory listing or screenshot of the hardware subfolder of your sketchbook folder showing the contents of the espressif subfolder.