@crimson0087 You could try the above solutions and see if that helps, don't know anything about the flirc case but you could try to see if the post below also solves your issues, look at the post by @luedi :

https://retropie.org.uk/forum/topic/27921/ssd-causing-lag/10?_=1626094802543