I noted this too now in 5.18 ....
I have talked about the developers if can do an update on Mupen 64 (with Glide 64) to correct this or, in another case, to regret the Glide64 to the same as in 5.15 , because in this version of batocera all is fine with N64 ....
Before the devs correct this, i can say this : Try to change the N64 Mupen 64 core to "RICE" ...for me , it is working better because the performances of Glide64 after 5.16 is worse .....