Indeed it's a problem with conversion. The following returns quickly
dsp(x, ['a,'b,'c,'d,'5,'5,'t,'s,'r,'s,'s,'s,'s])
The problem seems to be that you have the number 5 in your list.
If you evaluate [a,b,c,d,5,5,t,s,r,s,s,s,s] in a session, you get
(18) -> [a,b,c,d,5,5,t,s,r,s,s,s,s]
(18) [a, b, c, d, 5, 5, t, s, r, s, s, s, s]
Type: List(Polynomial(Integer))
You give FriCAS the task to figure out how to convert from Polynomial
Integer to Symbol.
(19) -> p := (a::Polynomial(Integer))
(19) a
Type: Polynomial(Integer)
(20) -> p::Symbol
(20) a
Type: Symbol
(21) -> q := (5::Polynomial(Integer))
(21) 5
Type: Polynomial(Integer)
(22) -> 5::Symbol
Cannot convert the value from type PositiveInteger to Symbol .
Ralf