The problem with the shadows was because the torch was not set as static mesh, but the problem with the static lights has not yet been solved
With a common material, there are no problems in lighting after building
edit: I tried to create another project with the third person template and put a toon shaded material on one of the meshes of the map, the same problem occurred when building static light