There are no significant risks associated with sleeping with a pillow under your knees. However, it is essential to choose the right pillow and position it correctly to avoid any discomfort or pain. It is also essential to consult a doctor before using a knee pillow if you have any medical conditions.