Is it permissible to engage in sexual intercourse while facing the Qiblah, whether intentionally or unintentionally?
Deliberately engaging in sexual intercourse while facing the Qiblah is makruh (disliked), and one should refrain from it.
كما في ردالمحتار:ولقولهم يكره مد الرجلين إلى القبلة في النوم وغيره عمدا، وكذا في حال مواقعة أهله(فصل الاستنجاء،ج:١،ص:٣٤١،مط:سعيد)