Does --hidden-import=browserhistory not fix it? That warning makes me think it won’t but try it first anyway.
Application runs fine via pycharm
Can you also ensure that running it from cmd works too (using python MyScript.py)? If it does then try using python -m PyInstaller instead of just PyInstaller.exe. I believe there is a small chance your PyInstaller and PyCharm are not using the same environment if it’s failing to find what should be a trivial package for PyInstaller.