As @jyao6429 said isolating gyro from vibration is very important:
There are multiple sources of the gyro measurement noise, causing drift. Some of them could be eliminated with this trick:
Finally, software filtering could improve accuracy of the gyro a lot:
https://renegaderobotics.org/getting-started-with-the-vex-gyro-sensor/