I have solved it this way:I have exported my profile (old Thunderbird version) and then imported in a new profile with the current Thunderbird version. Now the annoying list scrolling is gone.
The issue is still present in the latest version 115.5.2.Despite in the release notes it says:"Fixed: Message list scroll position could move randomly when switching folders"