After running for a day or two (not right after booting it), my laptop begins to display a strange behaviour: after pressing the caps lock my keyboard freezes which means that it does not respond to any input, however, if you press the caps lock with another character, e.g. "X", it continues to press "X" indefinitely. The only thing that can help is a restart. I've attached my laptop specs below, other than that I'm not sure what information could be useful in debugging this, so please let me know if you have any clues. If I check the crash report, the only thing that appears in there is OneDrive crashing about the same time I experienced the issue.
Many thanks!
Best Answer
For me resetting the NVRAM fixed it:
From: https://windowsreport.com/mac/macbook-stuck-caps-lock/