Now this could work for any of you however I kept digging and found out a solution that fixed all of those errors for me so here it is:
The problem lies in a .sys file named Orean32.sys this is a game security file with rootkits but instead of securing the game it just ruins it. Simply removing the file wont help since Battlefield will just place it back the next time you start it up so here is what you do.
Go to start and then Run.
At Run Type CMD to open a command prompt.
When you opened the prompt (a black screen with some lines in it) type:
Net Stop Oreans32
Some data will appear and then type:
SC Delete Oreans32
Some more data will appear and you can close the prompt now.
After you did all the go to:
C:\Windows\System32\Drivers and delete the file called Oreans32.
Reboot your PC and enjoy the game
Notes: This fixed the said error for me but I dont know if it will fix other errors too.
Before you start doing this for other errors please first try updating your Video Card Drivers and Update Punkbuster