How to assign twig templates dynamically on basis of field value of custom block?
See https://drupal.stackexchange.com/a/211157/31 for an existing related answer.

You implement the theme suggestions hook, the block_content entity is in $variables['elements']['content']['#block_content'] as shown there, then you can access your field values from there and provide any kind of template suggestions that you want.