The problem i had:
Hey guys i started having this problem about a week or so ago it started by just minimizing while in the menu's waiting for a game but the past few days it gotten worse where it would minimize in a game usually in the beginning of the match (never minimized end game no idea why).i have been telling my friend and they just kinda brushed it off at first as it wasn't making us loose games and also didn't bother me to much but when it started to happen more frequent i had to get a solution my one friend then told me that in origin he sees me online but playing another game (unravel 2) so that was a starting point for my trouble shooting but was not sure what to search for on google so i started by just searching for origin that minimizes and results are limited some people want you to edit files im not comfortable with editing as one wrong move could break your entire computer so i didn't even attempt it other solutions say play in borderless windows which didn't work the game would still minimize but as its a window i would still see the game but cant move as im not actually in the window so i turned full screen back on so i at least know i was minimized so i can get back in ... long story short it was not fun and seemed like there was no solution my friend then gave me this link to this form saying to try and repair all my installed origin games i did so not having high hopes as the last game i was repairing then still minimized my game but then upon close inspection he also cleared his cache file so i did that as well and bam no more minimized game
Solution (atleast from my computer i use):
1.repair all your origin game you have installed
1.1 very simple just in origin click on the game
1.2 click on the setting cog wheel
1.3 and click repair
should take a little depending on your hardware
2. once that's is done test it out see if it still minimizes as that might work already if not clear your cache files
2.1 just a few comments up is the link on how to clear your cache file but here it is again for convenience
https://help.ea.com/en-us/help/faq/clear-cache-to-fix-problems-with-your-games/
once you have done that boot up the game again and everything should be fine
thank you very much to VodkaOtter and Dasavior_bb
HOPE THIS HELPS OUT SOMEONE ELSE HAVING THIS PROBLEM AS WELL