After upgrading to 9.5.0.5318, installing msoledbsql_18.1.0.0_x64.msi (w/o it there's no connection to SQL Server anymore), and connecting to two distinct SQL Server databases, HeidiSQL 5318 to 5321 crash where 5317 used to work just fine. The error is reproducible and happens afer I select a table, then the "Data" tab, or after I execute a query from the "Query" tab.
Attached you'll find a screen shot and a bugreport.