I think "this will be forever" sounds a bit weird too, so the question might have a flawed premise. What is the context? In both sentences, if the last word is an adverb, then the word it's modifying is "be." To be is to exist. Saying that something will exist forever is pretty normal (especially as hyperbole). Saying "the way this thing is going to exist is unexpectedly" is very weird. I guess it's technically a grammatically correct sentence, but not something that anyone would ever say.
Usually when we say "this will be x," the "x" is almost always an adjective modifying "this," not an adverb modifying "be." This is the much more common and natural way of speaking. So you would say "this will be unexpected." With "this will be unexpectedly," I find myself waiting for the adjective. It will be unexpectedly what? Unexpectedly fast? Unexpectedly funny?
I hope this helps!