One thing that might work is if white hat hackers outnumber the black hat hackers and create ransomware that doesn't have a decrypt option. At a certain point, people will stop paying the ransom.
Another option is: forbid bitcoin and other cryptocurrencies.
Another option is: forbid bitcoin and other cryptocurrencies.