notification texting

i got my iphone 15 pro max around christmas last year, and just recently whenever i hold a text notification to respond in that little box so i don't have to leave the app im currently in it's really slow to type (like it’s lagging or something), not smooth like when i normally text or type. is there any reason to this or if i can fix it?