My visa will expire while I am in the United States. Is there a problem with that?

No. You may stay in the U.S. for the period of time and conditions authorized by the Department of Homeland Security officer when you arrived in the U.S., which will be noted on the I-94, even if your visa expires during your stay.