Both 'cannot' and 'can not' are acceptable spellings, but the first is much more usual.
https://www.lexico.com/grammar/cannot-or-can-not
Merriam-Webster dictionary
Grammarly