Games crashes on launching, after playing the first time

This happens both with DS and Commodore 64 cores. Game runs fine the first time. When I play it some other time, Retroarch crashes to desktop.

Only temporary solution is to delete the history/favourites playlists. But then it happens all over again when Retroarch creates new playlists.

The logs don’t show anything suspicious, but the last enries are:

[INFO] [Display]: Found display driver: “vulkan”. [INFO] [MIDI]: Output device: “Microsoft GS Wavetable Synth”. [INFO] [Playlist]: Loading history file: “C:\Users\Ricardo\AppData\Roaming\RetroArch\content_history.lpl”. [INFO] [Playlist]: Loading history file: “C:\Users\Ricardo\AppData\Roaming\RetroArch\content_music_history.lpl”. [INFO] [Playlist]: Loading history file: “C:\Users\Ricardo\AppData\Roaming\RetroArch\content_video_history.lpl”. [INFO] [Playlist]: Loading history file: “C:\Users\Ricardo\AppData\Roaming\RetroArch\content_image_history.lpl”. [INFO] [Playlist]: Loading favorites file: “C:\Users\Ricardo\AppData\Roaming\RetroArch\content_favorites.lpl”.