谦卑 is more formal and literary than 谦虚. It implies a deeper, more genuine humility, often in moral or spiritual contexts. 谦虚 is the everyday word for being modest.
register
More common in written Chinese, religious texts, and formal speech. In casual conversation, 谦虚 is preferred.