How to fix the «Error filtering template: Unable to unserialize value» Magento 2.2 failure of a CMS widget rendering?

Another solution: How to fix the «Unable to unserialize value» failure while upgrading Magento from 2.1.x to 2.2.x?