Whether or not it's deprecated that's what that error code is looking for.
A solution to get the error to go away is to add the type="text/css" that it's looking for.
The
BEST solution is to not have a <style> in the header in the first place and put your styling into a css file, then just link the file.