The Polish armed forces’ chief of the general staff and operational commander have resigned amid reports of conflict with the government.