and how to find out the reason why it is not valid, I think I changed something and broke the wallet, but the Genesis block and keys, hashes I did not change so I do not understand why the block is damaged.
Looking at debug.log, the originating error started with CheckEquihashSolution() failing on verifying the genesis block… the “Initializing databases…” message shows up when zcashd is creating the block database for the very first time. Since the genesis block information is hardcoded into the chainparams.cpp file there’s only a very limited amount of situations where this error comes up; most likely if there’s a bad build.
To fix the error, I would just backup your wallet.dat file and go with a fresh compile and see where that takes you before trying anything else.
Another option to do before running a recompile is to run the test suite to look for errors. Just run src/test/test_bitcoin from the zcash source code directory.