I use to have a wind guard on my back wheel of a bike once, that did a good job compared to the bike I have without one, however winds are dangerous far car drivers and motorcycles as they are for cyclist and the only way you can get better at attacking the wind is through experience.
I shift my weight every so slightly so when I do get a push that shift of weight does enough to help me keep in a fair line without wobbling too much but the wind will still push you but your line of travel might straighten but do not shift your weight so much that you're hanging on one side or will fall once that wind just stops, the weight shift is every so slightly and im a short guy 5ft2 and that small shift is enough for me so it should be enough for most people, if that does not work do not shift anymore. This is what I do, It has been safe for me but I have no idea if it is an ideal thing to do so do not quote me on it.