To extract references from the huge bib file. GoTo the LaTeX project directory, and use the below command:
bash
bibtool -x <output>.aux > <output>.bib
Note: The output.bib is the extracted bib file from the <references>.bib which is your whole Zotero/Mendeley references bib file. Before running bibtool, make sure that <references>.bib and <output>.aux files exist and they are in the current (same) directory. If you are downloading them from overleaf then, make sure they are in the same directory.