Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Note that this is an issue with the TeXworks editor as bundled with MiKTeX - you could install TeXworks separately or use a separate editor: your .tex files are not 'broken'.
as you already have two miktex installing more is probably not the best strategy. Try to get rid of the older one. And then run on a command line miktex packages update and perhaps miktex --admin packages update
.tex
files are not 'broken'.miktex packages update
and perhapsmiktex --admin packages update