The latest Roku Media Player update last week takes two minutes to scan over 18,000 songs and then crashes immediately upon playback exiting to HOME screen and taking sound capability with it. It then requires a full reset in order to get sound functionality back.
This is with a 2019 ROKU Express
Check your stack overflow conditions on memory usage for your linked lists and see if proper error and exception handling is in force.
The old version of MEDIA PLAYER could easily handle over 20,000 songs without a problem so the update definitely is not ready for wide release yet.