Are the feet set properly? They usually screw in and out. Try rocking it and see if you can adjust the feet lengths so it doesn’t rock when shaking it.
I can't really solve your shaking problem but my washer shakes a bit (not crazy but it does vibrate the upstairs) so I bought pucks on Amazon and they stop the washer from shaking heavily.