Sometimes it's not the remote; it's the Roku device. Try restarting it from Settings->System or Settings->System->Power (as appropriate) when it occurs. If it's so bad that you can't navigate the menu, just unplug the power for a few seconds.
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.