USB devices cause entire laptop to freeze for up to half an hour or more

More RAM stabilizes USB usage a little, but the system still freezes quickly. It has to do with the hard disk (mode: AHCI). In my case, as in tech_nerd’s case, it is an WD PC SN730 or SN740 SSD hard disk. There is no kernel so far under which the problem disappears.