Yes, there's definitely a risk of you missing the interview and getting denied.
Usually you're supposed to have an interview letter and case status update. Usually USCIS gives a few weeks notice.
That said, you never know when you're going to be approved or called for an interview. I watched cases around mine. Some were approved in November 2022. In January-February it got quiet. My friend got approved in May 2023.
I had 2 trips between November 2022 and August 2023 when I got approved.
I would've missed those trips for no reason. Was there a risk? Yes. Was it that big? No. If you only travel for 2-3 weeks, you should be OK.