Door Jamb Rotted Where Latch Goes
I suggest replacing that jamb board. Measure the board and purchase a new board to replace it. Cut it completely out, top to bottom and install the new board. Cut your lockset holes and paint to match.