The WR and RD pins may be driven too hard, which can cause ringing on the lines. This can result in corrupted data because WR and RD are edge sensitive. Fitting series resistors to the WR and RD pins in the range 20-40Ω close to the microcontroller should remedy the problem.