ValueError: Shapes (None, 10, 2, 2, 2) and (None, 10) are incompatible code example
Example: shapes (none, 1) and (none, 5) are incompatible
Change Categorical Cross Entropy to Binary Cross Entropy since your output label is binary. Also Change Softmax to Sigmoid since Sigmoid is the proper activation function for binary data