Crash if the favourite GIFs menu is too large and a lot of GIFs are loaded

(#4775) Bug Closed: Fixed desktop media ui

Thread