Try deleting the folders from the following directories manually and do quick repair and rebuild from the admin OR run php bin/console cache:clear command and test again.
cache/prod OR cache/qa depending upon the environment type.
public/legacy/cache
Customization done in custom folder are upgrade safe so can you take backup and undo modules changes and copy the detailviewdefs.php in custom/modules/{modname}/metadata folder and change the code.
Hope this works ![]()